package field_method7;

public class Book {//书类
    private String bookName;
    private String author;
    private String publisher;
    private String price;

    public void setBookName(String bookNameParaam){
        System.out.println("数据传过来了:" + bookNameParaam);

        bookName = bookNameParaam;
    }

    public String getBookName(){
        return bookName;
    }

    public void setAuthor(String authorParam){

        author = authorParam;
    }

    public String getAuthor(){

        return author;
    }

    public void setPublisher(String publisherParam){

        publisher = publisherParam;
    }

    public String getPublisher(){

        return publisher;
    }


    public void setPrice(double priceParam){

        price = priceParam;

    }

    public double getPrice(){
        return price;
    }


    public String getBookInfo(){

        return "书名:" + bookName +"作者:" + author
                +"出版社名:" + publisher + "价格:" + price;
    }

}
}
